import {requestDelete, requestGet, requestPost, requestPut} from "@/api";

export const getBuilderList = () => {
    return requestGet('/api/sm/builders')
}

export const getBuilderById = (id:string) => {
    return requestGet('/api/sm/builder/'+id)
}


export const saveBuilder = (data?:any) => {
    return requestPost("/api/sm/builder",data)
}

export const updateBuilder = (data?:any) => {
    return requestPut("/api/sm/builder",data)
}
export const deleteBuilder = (id:string) => {
    return requestDelete("/api/sm/builder/"+id)
}

